package com.aaa.ni.service;

import com.aaa.common.entity.News;
import com.aaa.common.util.Result;
import com.aaa.common.vo.NewsVo;

import java.util.List;
import java.util.Map;

/**
 * fileName:NewsService
 * description:
 *
 * @author:wzl createTime:2020/9/3 15:13
 */
public interface NewsService {

    /**
     * 分页查询
     * @param pageNo
     * @param pageSize
     * @param map
     * @return
     */
    Result pageByParam(int pageNo, int pageSize, Map map);



    int deleteByPrimaryKey(Integer id);

    int insertSelective(NewsVo newsVo , String accessToken);

    News selectByPrimaryKey(Integer id, String accessToken,Integer isBack);

    int updateByPrimaryKeySelective(News record);

}
